import 'package:mvvm_provider/page/stream_provider_test/states/stream_provider_state.dart';
import '../../../base/base_view_model.dart';

class StreamProviderViewModel extends BaseViewModel<StreamProviderState> {
  StreamProviderViewModel() : super(StreamProviderState());

  Stream<String> getChatMessages() {
    return Stream.periodic(const Duration(seconds: 2), (count) {
      return '我好想你 $count';
    });
  }
}
